//help instructions go here









function TradeMenu( ply ) --Start the function
		
		
		
local TradingFrame = vgui.Create("DFrame")
      TradingFrame:SetPos(ScrW()/2,ScrH()/2)
      TradingFrame:SetSize(610,375)
      TradingFrame:SetTitle("Trading")
      TradingFrame:MakePopup()
	
local PropertySheet = vgui.Create( "DPropertySheet", TradingFrame )
	  PropertySheet:SetPos( 5, 30 )
	  PropertySheet:SetSize( 600, 340 )
	
	
	
 -- help tab's
local GenTrade = vgui.Create( "DPanel", TradingFrame )
GenTrade:SetPos( 25, 50 )
GenTrade:SetSize( 120, 250 )
GenTrade.Paint = function() -- Paint function
    surface.SetDrawColor( 255, 255, 255, 255 ) -- Set our rect color below us; we do this so you can see items added to this panel
    surface.DrawRect( 0, 0, PropertySheet:GetWide()/2, PropertySheet:GetTall() ) -- Draw the rect
	surface.SetDrawColor( 255, 255, 255, 255 ) -- Set our rect color below us; we do this so you can see items added to this panel
    surface.DrawRect( 0, 0, PropertySheet:GetWide()/2, PropertySheet:GetTall() ) -- Draw the rect
end

local GenTrade2 = vgui.Create( "DPanel", TradingFrame )
GenTrade2:SetPos( 25, 50 )
GenTrade2:SetSize( 120, 250 )
GenTrade2.Paint = function() -- Paint function
    surface.SetDrawColor( 255, 255, 255, 255 ) -- Set our rect color below us; we do this so you can see items added to this panel
    surface.DrawRect( 0, 0, PropertySheet:GetWide()/2, PropertySheet:GetTall() ) -- Draw the rect
end


	
local PremadeShips = vgui.Create( "DPanel", TradingFrame )
PremadeShips:SetPos( 25, 50 )
PremadeShips:SetSize( 250, 250 )
PremadeShips.Paint = function() -- Paint function
    surface.SetDrawColor( 255, 255, 255, 255 ) -- Set our rect color below us; we do this so you can see items added to this panel
    surface.DrawRect( 0, 0, PropertySheet:GetWide(), PropertySheet:GetTall() ) -- Draw the rect
end

local ShipParts = vgui.Create( "DPanel", TradingFrame )
ShipParts:SetPos( 25, 50 )
ShipParts:SetSize( 250, 250 )
ShipParts.Paint = function() -- Paint function
    surface.SetDrawColor( 255, 255, 255, 255 ) -- Set our rect color below us; we do this so you can see items added to this panel
    surface.DrawRect( 0, 0, PropertySheet:GetWide(), PropertySheet:GetTall() ) -- Draw the rect
end

local LSMod = vgui.Create( "DPanel", TradingFrame )
LSMod:SetPos( 25, 50 )
LSMod:SetSize( 250, 250 )
LSMod.Paint = function() -- Paint function
    surface.SetDrawColor( 255, 255, 255, 255 ) -- Set our rect color below us; we do this so you can see items added to this panel
    surface.DrawRect( 0, 0, PropertySheet:GetWide(), PropertySheet:GetTall() ) -- Draw the rect
end







	

	
	
	
	
PropertySheet:AddSheet( "General Trading", GenTrade, "gui/silkicons/user", false, false, "General Trading Tab." )
PropertySheet:AddSheet( "Ship's", PremadeShips, "gui/silkicons/user", false, false, "Buy Already Made Ship's." )
PropertySheet:AddSheet( "Ship Parts", ShipParts, "gui/silkicons/group", false, false, "Buy Ship Parts And Addons." )
PropertySheet:AddSheet( "Life Support Modules", LSMod, "gui/silkicons/user", false, false, "Life Support Modules Buy" )




end 

usermessage.Hook("ShopNPCUsed", TradeMenu) 




